<? include 'server_config.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>ugly duckly</title>
		<style type="text/css">
			<!--
				html, body
				{
					margin:0px;
					padding:0px;
					font-size: 11px; 
					font-family: '돋움';
					line-height: 13px; 
					text-align:center;
				}
			-->
		</style>
	</head>


	<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>
		<div style='margin:0 auto; width:1282px; text-align:left;'>
			<div style='position:absolute;   width:1282px;'><!-- background-image: url("img/depth2_03_about.jpg");' -->

				<!--상단 메뉴 로드-->
					<?
						include('top_menu.php');
					?>

				<!--메인 우측 부분 부분 로드-->
					<?
						include('main_right.php');
					?>

				<!--Interior Work 가운데 부분 로드-->

				<!--Interior Work 가운데 부분 시작-->
					<div style='width:996px;float:left;'>
						<div style='width:944px;height:18px;float:left;'><span></span></div>
						<div style='width:450px;float:left;margin-left:53px;'>
							<div style='width:183px;height:20px;float:left;'>
								<? 
								if ($_GET['type']==1)
								{
									?>
								<img src='img/16_53x1013.jpg'>
								<?
								}
								else
								{
									?>
								<img src='img/17_530x1013.jpg'>
								<?
								}
									?>
								
							</div>

	<?
		$sql = "SELECT * FROM ud_work WHERE type='".$_GET['type']."' ORDER BY reg_timestamp DESC;";
		
		$count=0;
		
		$result = mysql_query($sql,$connect);

		while($row = mysql_fetch_row($result))
		
		{
			$count++;
			if($count % 2 ==0)
				continue;

	?>
							<div style='width:450px;height:7px;float:left;'><span></span></div>
							<div style='width:449px;height:1px;background:#525051;float:left'><span></span></div>
							<div style='width:450px;height:12px;float:left;'><span></span></div>
							<div style='width:449px;height:299px;float:left;'>
								<a href='p1_1.php?type=<? echo $_GET['type']; ?>&idx=<? echo $row[0]; ?>'><img src='./admin/file/<? echo $row[2]; ?>' width='449px' height='299px' border=0></a>
							</div>
							<div style='width:450px;height:8px;float:left;'><span></span></div>
							<div style='width:450px;height:20px;float:left;'>
								<!--img src='title_img.php?text=<? echo $row[4];?>'-->
								<span style='font-size:15px;'><b><? echo $row[4];?></b></span>
							</div>
							<div style='width:450px;height:8px;float:left;'><span></span></div>
							<div style='width:450px;height:30px;float:left;'>
								<? echo $row[5];?>
							</div>

							<div style='width:450px;height:7px;float:left;'><span></span></div>
	<?
		}
	?>

						</div>
						<div style='width:450px;float:left;margin-left:27px;'>

							<div style='width:450px;height:20px;float:left;'><span></span></div>

	<?
		$sql = "SELECT * FROM ud_work WHERE type='".$_GET['type']."' ORDER BY reg_timestamp DESC;";
		
		$count=0;
		
		$result = mysql_query($sql,$connect);

		while($row = mysql_fetch_row($result))
		
		{
			$count++;
			if($count % 2 ==1)
				continue;
	?>
							<div style='width:450px;height:7px;float:left;'><span></span></div>
							<div style='width:449px;height:1px;background:#525051;float:left'><span></span></div>
							<div style='width:450px;height:12px;float:left;'><span></span></div>
							<div style='width:449px;height:299px;float:left;'>
								<a href='p1_1.php?type=<? echo $_GET['type']; ?>&idx=<? echo $row[0]; ?>'><img src='./admin/file/<? echo $row[2]; ?>' width='449px' height='299px' border=0></a>
							</div>
							<div style='width:450px;height:8px;float:left;'><span></span></div>
							<div style='width:450px;height:20px;float:left;'>
								<!--img src='title_img.php?text=<? echo $row[4];?>'-->
								<span style='font-size:15px;'><b><? echo $row[4];?></b></span>
							</div>
							<div style='width:450px;height:8px;float:left;'><span></span></div>
							<div style='width:450px;height:30px;float:left;'>
								<? echo $row[5];?>
							</div>

							<div style='width:450px;height:7px;float:left;'><span></span></div>
	<?
		}
	?>

						</div>
					</div>


				<!--Interior Work 가운데 부분 끝-->

				<!--하단부 로드-->
					<?
						include('bottom.php');
					?>

			</div>
		</div>
	</body>
</html>